import { ref } from "vue";

const useIndex = () => {
    const currentIndexRef = ref(-1);
    const handleIndex = (index, url) => {
        currentIndexRef.value = index;
        CONTEXTAPI.openWebsite(url);
    }
    return {
        currentIndex: currentIndexRef,
        handleIndex
    }
};
export default useIndex;